/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Ex5_Banking;

/**
 *
 * @author Root
 */
public class Customer {

    private String firstName, lastName;
    private Account account;

    public Customer() {
    }


    public Customer(String f, String l) {
        this.firstName = f;
        this.lastName = l;
//        System.out.println("Creating the customer " + f + " " + l);

    }

    public String getFirstName() {
        return this.firstName;
    }

    public String getLastName() {
        return this.lastName;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account acc) {
        this.account = acc;
    }

    public void show_customer() {
        System.out.println("Customer [" + firstName + " , " + lastName + "] has a balance of " + account.getBalance());
    }

}
